package com.itheima1.controller;

import com.itheima.common.entity.Result;
import com.itheima1.pojo.MemberDTO;
import com.itheima1.service.IOrderService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/member")
@Api(tags = "登录管理")
public class LoginController {
    @Autowired
    private IOrderService orderService;
    @RequestMapping("/login")
    public Result login(@RequestBody MemberDTO memberDTO){
        orderService.checkLogin(memberDTO);
        return new Result(true,"登录成功",null) ;
    }
}
